import request from '@/utils/request';
// 用工办理
// 列表
export async function getHireList(params) {
  return request(`/osApi/insAddDetExt/listHire/page`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
export async function onLineHandle(params) {
  return request(`/osApi/insAddDetExt/syncInsOnLineHireDecl`, {
    method: 'POST',
    body: params,
  });
}

// 标记已办理
export async function signHandle(params) {
  return request(`/osApi/insAddDetExt/markHireComplete`, {
    method: 'POST',
    body: params,
  });
}

export async function exportDeclResultDet(params) {
  return request(`/osApi/insAddDetExt/exportDeclResultDet`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function getDeclList(params) {
  return request('/osApi/insAddDet/queryDeclDetInsAddTemplate', {
    method: 'POST',
    body: params,
  });
}

export async function getProgress(params) {
  return request(`/osApi/batchTask/getBatTaskInfo`, {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
